package com.tuo51.core.domain.ppp;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "p_position")
@Data
@EqualsAndHashCode(callSuper = true)
public class Position extends Domain {

    @Column(columnDefinition="varchar(50) COMMENT '名称'")
    private String name;

    @Column(columnDefinition = "varchar(50) COMMENT '代码'")
    private String code;

    @Column(columnDefinition="varchar(50) COMMENT '描述'")
    private String description;

    @Column(columnDefinition="int(1) default 1 COMMENT '排序'")
    private Integer sort;

    @Column(columnDefinition = "varchar(32) COMMENT '所属系统'")
    private String platformId;

    @Column(columnDefinition = "varchar(32) COMMENT '所属平台，冗余字段'")
    private String productId;
}
